package com.stu.covid.business.mapper;

import com.stu.covid.business.entity.Student;
import com.stu.covid.business.entity.Teacher;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface TeacherMapper extends Mapper<Teacher> {

    List<Teacher> list(Teacher teacher);

    Integer count(Teacher teacher);

    @Select("select * from t_teacher where user_id = #{value}")
    Teacher selectByUserId(Integer userId);
}